package itheima.com.Properties;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Properties_01 {

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new FileReader("src\\mysql.properties"));
        String line = "";
        while ((line = br.readLine())!= null){
//            System.out.println(line);
            String[] split = line.split("=");
//            System.out.println(split[0]+"   "+split[1]);

            if ("ip".equals(split[0])){
                System.out.println(split[0]+"   "+split[1]);
            }


        }
        br.close();

    }

}
